<?php if (!defined('THINK_PATH')) exit();?>
<!doctype html>
<html>
        <head>
                <meta charset="UTF-8">
                <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
                <title>系统后台 - 康和 - by thkCMS</title>
                <link href="/statics/css/admin_style.css" rel="stylesheet" />
                <link href="/statics/js/artDialog/skins/default.css" rel="stylesheet" />
        
<script type="text/javascript">
//全局变量
        var GV = {
                DIMAUB: "http://n.com/",
                JS_ROOT: "statics/js/",
        };
</script>
<script src="/statics/js/wind.js"></script>
<script src="/statics/js/jquery.js"></script>
</head>
<body class="J_scroll_fixed">
        <div class="wrap J_check_wrap">
                
<div class="nav">
        <ul class="cc">
                <?php $submenus = include './submenu.php'; $type = I("get.menutype",MODULE_NAME); ?>  
                <?php foreach($submenus[$type] as $r){ $class = ($r['action'] == ACTION_NAME) ? 'class="current"':""; ?>
                <li <?php echo ($class); ?>><a href="<?php echo U($r['url'],array('menuid'=>$_GET['menuid']));?>"><?php echo ($r["title"]); ?></a></li>
                <?php
 }?>

        </ul>
</div>
                <div class="h_a">专家信息修改/录入操作</div>
<form name="myform" action="<?php echo U('save');?>" method="post" class="J_ajaxForm">
        <?php if(isset($id)): ?><input type="hidden" name="id" value="<?php echo ($id); ?>" /><?php endif; ?>
        <div class="table_full">
                <table width="100%" class="table_form">
                        <tr>
                                <th width="80">专家姓名</th> 
                                <td><input type="text" name="name"  class="input length_6" value='<?php echo ($name); ?>' /></td>
                        </tr>
                        <tr>
                                <th width="80">职称</th> 
                                <td><input type="text" name="position"  class="input length_6" value='<?php echo ($position); ?>'  /></td>
                        </tr>
                        <tr>
                                <th width="80">专家描述</th> 
                                <td>
                                        <textarea name="descrip" rows="4" class='length_6'><?php echo ($descrip); ?></textarea>
                                </td>
                        </tr>
                        <tr>
                                <th width="80">上传图片</th> 
                                <td><?php echo Form::images("avatar","avatar",$avatar);?></td>
                        </tr>
                        <tr>
                                <th width="80">状态</th> 
                                <td><label><input type="radio" name="status" value="1" <?php if(isset($status)): if(!empty($status)): ?>checked<?php endif; else: ?>checked<?php endif; ?> /> 显示</label>
                                        <label><input type="radio" name="status" value="0" <?php if(isset($status)): if(empty($status)): ?>checked<?php endif; endif; ?> /> 隐藏 </label></td>
                        </tr>

                </table>
        </div>
        <div class="">
                <div class="btn_wrap_pd">             
                        <button class="btn btn_submit mr10 J_ajax_submit_btn" type="submit">添加</button>
                </div>
        </div>
</form>

        </div>
        <script src="/statics/js/common.js?v"></script>
        <script type="text/javascript" src="/statics/js/content_addtop.js"></script>

</body>
</html>